import util from "@/utils/request";
let $axios = util
const getFirmItemList = (params) => {
    return $axios({
        url: `/api/getPartnerCompanyList`,
        method: 'get',
        params
    })
}
const getTeamList = (params) => {
    return $axios({
        url:'/api/getPageCollaboratingPersonnelList',
        method:'get',
        params
    })
}
const getTeamDetail = (id) => {
    return $axios({
        url:`/api/queryCollaboratingPersonnelDetail/${id}`,
        method:'get',
    })
}
const subTeam = (data) => {
    return $axios({
        url:'/api/updateCollaboratingPersonnel',
        method:'put',
        data
    })
}
const saveTeam = (data) => {
    return $axios({
        url:'/api/addCollaboratingPersonnel',
        method:'post',
        data
    })
}
const deleteTeam = (id) => {
    return $axios({
        url:`/api/deleteCollaboratingPersonnel/${id}`,
        method:'delete',
    })}
export default {
    getFirmItemList,
    getTeamList,
    getTeamDetail,
    subTeam,
    saveTeam,
    deleteTeam
}